<template>
  <div class="setUp" :style="{'height':height}">
    <div class="header">
      <div class="header_left">
        <img :src="image||require('@/assets/ic_flag_blue@2x.png')">
        <span>{{ title }}</span>
        <slot name="left" />
      </div>
      <div class="header_right">
        <slot name="right" />
      </div>
    </div>
    <div class="main">
      <slot />
    </div>
  </div>
</template>

<script>
export default {
  name: 'SetUp',
  props: {
    title: {
      type: String
    },
    image: {
      type: String
    },
    height: {
      type: String,
      default: '100%'
    }
  }
}
</script>

<style lang="scss" scoped>
.setUp{
  width: 100%;
  background-color: #fff;
  .header{
    margin-left: 32px;
    font-size: 24px;
    display: flex;
    color:rgba(0,0,0,1);
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 ;
    margin-right: 85px;
    .header_left{
      display: flex;
    align-items: center;
    }
    img{
      width: 25px;
      height: 30px;
    }
  span{
      margin-left: 16px;
    }
  }
  .main{
    display: flex;
    justify-content: left;
  }
}
</style>

